package com.rran.study.designpattern.factory.factorymethod;

/**
 * @author yy
 * @Type FactoryMethodTest.java
 * @Desc 方法工厂模式
 * @date 2020/7/22 15:58
 */
public class FactoryMethodTest {

    public static void main(String[] args) {
        GameMachineFactory ps4Factory = new PS4Factory();
        GameMachine ps4 = ps4Factory.create();
        ps4.play();
    }
}
